steam_file_exists

语法:

steam_file_exists(filename);


参数 描述
filename 要检查的文件的名称。


返回: 布尔值


描述

With this function you can check to see if a file from the Steam Cloud exists or not, with a return value of true if it exists, or false otherwise.


例如:

if steam_file_exists("Save.txt")
   {
   save_str = steam_file_read("Save.txt");
   }

The above code checks to see if a file exists on the Steam Cloud and if it does, it opens it and reads its contents into the variable "save_str".